@inherits PartialViewMacroPage
@using Umbraco.Cms.Web
@using Umbraco.Cms.Web.Macros
@using Umbraco.Framework


@* Ensure that the Current Page has children, where the property umbracoNaviHide is not True *@
@if (CurrentPage.Children.Where("umbracoNaviHide != @0", "True").Any())
{
    <ul>            
        @* For each child page under the root node, where the property umbracoNaviHide is not True, order in descending order by date created *@
        @foreach (var childPage in CurrentPage.Children.Where("umbracoNaviHide != @0", "True").OrderByDescending("UtcCreated"))
        {
            <li>
                <a href="@childPage.Url">@childPage.Name</a>
            </li>
        }
    </ul>
}
